package com.example.studentmanagement.mapper;

import com.example.studentmanagement.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {


    Student findById(Integer id);

    List<Student> findAll();

    List<Student> findByClassId(Integer classId); // 根据班级ID查询学生

    void insert(Student student);

    void update(Student student);

    void deleteById(Integer id);

}
